package com.javaweb.dao;

import com.javaweb.model.Category;

import java.util.List;

public interface CategoryDao {

    public  int insert(Category category);
    // 根据 ID 删除分类
    public int deleteById(String categoryId);

    // 查询所有分类
    public List<Category> findAllCategories();

    public Category getCategoryByname(String categoryname);

    void addCategory(Category category);

    void deleteCategory(String categoryId);
}
